package com.tcxhb.job.agent.server.command.impl;

import com.tcxhb.job.agent.server.command.CommandHandler;
import com.tcxhb.job.agent.server.command.CommandMapping;
import com.tcxhb.job.agent.server.command.CommandRequest;
import com.tcxhb.job.common.model.MiscResult;
import com.tcxhb.job.common.utils.JsonUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Auther: tcxhb
 * @Date: 2023/11/5
 */
@Component
@Slf4j
@CommandMapping(name = "/cmd/job/beat", desc = "机器心跳接口,服务端定时调用")
public class JobBeatCommand implements CommandHandler<Boolean> {
    @Override
    public MiscResult<Boolean> handle(CommandRequest request) {
        log.info("JobBeatCommand");
        return MiscResult.suc(true);
    }
}
